package conson.tech.manage.api.activity.feign;

import conson.tech.core.constant.SecurityConstants;
import conson.tech.core.response.Response;
import conson.tech.manage.api.activity.dto.UserCreditRatingDTO;
import conson.tech.manage.api.activity.form.UserCreditForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * InterfaceName: UserCreditRatingFeignService
 * Description: TODO
 * Author: HXL
 * Date: 2020/5/27 2:22 下午
 * Version: 1.0
 */
@FeignClient(name = "manageOperation", url = "${feignclient.manage-operation.domain:}")
@RequestMapping(SecurityConstants.INNERAPI)
public interface UserCreditRatingFeignService {
    @PostMapping("/userCredit")
    Response<UserCreditRatingDTO> queryUserCredit(@Valid @RequestBody UserCreditForm form);
    @PostMapping("/activationUserCredit")
    Response<UserCreditRatingDTO> activationUserCredit(@Valid @RequestBody UserCreditForm form);
}
